package com.itshizhan.designpattern.singleton;

public class AppMain {
    public static void main(String[] args) {
        System.out.println("Start. ");
        Singleton obj1 = Singleton.getInstance();
        Singleton obj2 = Singleton.getInstance();
        if(obj1==obj2){
            System.out.println("obj1与obj2是 相同 的实例");
        }else {
            System.out.println("obj1与obj2是 不相同 的实例");
        }
        System.out.println("End. ");
    }
}
